package com.yxzc.chapter01

/**
 *
 * @author wu
 * @create 2021-08-30-16:44 
 */
class Dag {

  var age: Int = 0

  var name: String = ""
}

object VarDemo02 {
  def main(args: Array[String]): Unit = {
    val name: String = "21"
    val dag = new Dag
    dag.age = 10
    dag.name = "七七"
    println(dag.age.toDouble + "\t" + dag.age.toString + "\t" + 100.toDouble)
    sayHi
    var char1: Char = 'a'
    println("char1 = " + 10 + char1 + 1)
    var char2: Char = 979
    println("char1 = " + char2)
  }

  def sayHi(): Unit = {
    println("long的最大值" + Long.MaxValue + "Long的最小值" + Long.MinValue)

  }

  var a = 10;
  var b = 1.1;


}